<!DOCTYPE html>
<html lang="ch" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
<!--    <link rel="stylesheet" th:href="@{/static/css/login.css}">-->
    <style>
        .span-error {
            color: red;
            font-size:16px ;
        }

    </style>
</head>
<body>
    <div class="login_container">
    <h1>登录</h1><br><hr>
    <form th:action="@{/th/login}" method="post">
        <label for="username">用户名</label><br>
        <input type="text" name="username" id="username"  placeholder="请输入用户名"><br>
        <label for="password">密码</label><br>
        <input type="password" name="password" id="password"  placeholder="请输入密码"><br>
        <span class="span-error" th:text="${error}"></span><br>
        <input type="submit" value="登录">
    </form>
        <a th:href="@{/th/register}">前往注册</a>
    </div>
</body>
</html>